package com.yidu.controller;

import com.yidu.entity.DbCart;
import com.yidu.service.DbCartService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (DbCart)表控制层
 *
 * @author makejava
 * @since 2021-07-30 09:18:55
 */
@RestController
@RequestMapping("dbCart")
public class DbCartController {
    /**
     * 服务对象
     */
    @Resource
    private DbCartService dbCartService;
    //添加注释

    /**
     * 通过主键查询单条数据
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public DbCart selectOne(Integer id) {
        return this.dbCartService.queryById(id);
    }

}
